#region Using directives

using System;
using System.Text ;
using System.Data ;
using System.Collections ;
using WP.MF.DataEntity; 
using WP.MF.DataAccess; 
using WP.MF.BusinessRule; 
using WP.DB;
using WP.Commons;

#endregion
namespace WP.MF.BusinessLogical
{

	/*
	 * Created by SmartCreateCode Tool
	 * At 4/22/2005
	 */

	public class MUserLocationBLL
	{
		ArrayList multiList=new ArrayList ();
		MUserLocationDAL mUserLocationDAL =new MUserLocationDAL();
		public MUserLocationBLL()
		{
		}
		#region Select MUserLocation
		public MUserLocationDEL SelectMUserLocationByKey(int RecId)
		{
			MUserLocationDEL mUserLocationDEL=new MUserLocationDEL();
			DBAccess dBAccess=new DBAccess();
			return mUserLocationDAL.SelectMUserLocationByKey(dBAccess,RecId);
		}
		#endregion

		#region Insert MUserLocation
		public bool InsertMUserLocation(MUserLocationDEL mUserLocationDEL)
		{
			DBAccess dBAccess=new DBAccess(false,true);

			try
			{
				mUserLocationDAL.InsertMUserLocation(dBAccess,mUserLocationDEL);
				dBAccess.CommitTranAndCloseCon();
				return true;
			}
			catch(Exception e)
			{
				//RollBackTran trainsaction
				dBAccess.RollbackTran();
				throw new Exception (e.Message);
			}
		}
		#endregion

		#region Update MUserLocation
		public bool UpdateMUserLocation(MUserLocationDEL mUserLocationDEL)
		{
			DBAccess dBAccess=new DBAccess(false,true);
			try
			{
				mUserLocationDAL.UpdateMUserLocation(dBAccess,mUserLocationDEL);
				dBAccess.CommitTranAndCloseCon();
				return true;
			}
			catch(Exception e)
			{
				//RollBackTran trainsaction
				dBAccess.RollbackTran();
				throw new Exception (e.Message);
			}
		}
		#endregion


	}
}